"""
    属性
"""

class Dog:
    """dog类"""
    # 类属性
    home = "earth"

    def __init__(self,name,age):
        # 实例属性
        self.name = name
        self.age = age

    def sleep(self):
        print(f"dog need sleep everyday...........")


# 类属性的调用
print(Dog.home)
# 类属性的添加
Dog.address = "海南省海口市"
print(Dog.address)

# 实例化一个对象
print("---------------------------")
dog = Dog("小白",3)
print(dog.name)
print(dog.age)
dog.like = "溜达，玩耍"
print(dog.like)
